{include file="pub_header.htm"}

{include file="pub_search.htm"}

<div class="layout_place">
  <div class="place_current">
    <ul>
      <li><a href="{$lang.s._public.global.weburl}" target="_self">{$lang.s._public.global.website}</a></li>
      {foreach name=channel_path from=$channel_path item=item}
      <li><span>&#187;<span></li>
      <li><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name|str_entag:'space,br'}</a></li>
      {/foreach}
    </ul>
  </div>
</div>

<div class="layout_content">
  <div class="content_one_left">
    <div class="box_one_content">
      <div class="title">
        <h2>{$content_info.content.subject}</h2>
        <p>
          <strong>作者：</strong>{$content_info.content.author|default:'无'}
          <strong>来源：</strong>{$content_info.content.excerpt|default:'无'}
          <strong>时间：</strong>{$content_info.content.post_time|format_date:'%Y-%m-%d'}
          <strong>点击：</strong>{$content_info.content.click}
        </p>
      </div>
      {if $content_info.content.brief != ""}
      <div class="brief">
        {$content_info.content.brief}
      </div>
      {/if}
      <div class="content">
      {if $get.par|is_num == "1"}
        {$content_info.content_news_detail[$content_info.content.content_id][$get.par].detail}
      {else}
        {foreach name=content_news_detail from=$content_info.content_news_detail[$content_info.content.content_id] item=item}
          {if $smarty.foreach.content_news_detail.first}
            {$item.detail}
          {/if}
        {/foreach}
      {/if}
      </div>
      {if $content_info.content_news_detail[$content_info.content.content_id]|@is_array && $content_info.content_news_detail[$content_info.content.content_id]|@count > 1}
      <div class="dir">
        <ul>
          {assign var="par_list" value=0}
          {foreach name=content_dir from=$content_info.content_news_detail[$content_info.content.content_id] key=key item=item}
            {assign var="par_list" value=`$par_list+1`}
            {if $key == $get.par || ($get.par|is_num != "1" && $smarty.foreach.content_dir.first)}
            <li class="current">第{$par_list}页：{$item.subject}</li>
            {else}
            <li><a href="{$control_index}?act=content&scheduler_id={$content_info.content.scheduler_id}&par={$key}" target="_self">第{$par_list}页：{$item.subject}</a></li>
            {/if}
          {/foreach}
        </ul>
      </div>
      {/if}
      <div class="footer"></div>
    </div>
  </div>
  <div class="content_one_right">
    {return_channel_list upper_id=$channel_path.0.id if_enable="1" if_show="1" item=menu_sub}
    {if $menu_sub|@is_array && $menu_sub|@count > 0}
    <div class="box_one_sub">
      <div class="title">
        <h2>下属分类</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {foreach name=menu_sub from=$menu_sub item=item}
          {if $item.if_turn == "1"}
            {if $item.if_turn_type == "1"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_self">{$item.name}</a></li>
            {elseif $item.if_turn_type == "2"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {/if}
          {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name}</a></li>
          {/if}
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
    {/if}
    <div class="box_one_rank">
      <div class="title">
        <h2>热门推荐</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" prefix="20" limit="8" item=hot}
        {foreach name=hot from=$hot item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="middletitle">
        <h2>点击排行</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" click="1" limit="8" item=click}
        {foreach name=click from=$click item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
  </div>
</div>

{include file="pub_footer.htm"}
